package com.hjb.service.impl.cms;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.cms.CmsArticleDataService;
import com.hjb.service.domain.cmsarticledata.CmsArticleData;
import com.hjb.service.domain.cmsarticledata.CmsArticleDataExample;
import com.hjb.service.mapper.CmsArticleDataMapper;

@Service
public class CmsArticleDataServiceImpl implements CmsArticleDataService {

	private Logger log = LoggerFactory.getLogger(CmsArticleDataServiceImpl.class);
	
	@Autowired
	private CmsArticleDataMapper cmsArticleDataMapper;

	@Override
	public List<CmsArticleData> selectByExample(CmsArticleDataExample example) {
		return cmsArticleDataMapper.selectByExample(example);
	}

	@Override
	public int insertCmsArticleData(CmsArticleData cmsArticleData) {
		return cmsArticleDataMapper.insertSelective(cmsArticleData);
	}

	@Override
	public void updateCmsArticleData(CmsArticleData cmsArticleData) {
		cmsArticleDataMapper.updateByPrimaryKeySelective(cmsArticleData);
	}
	
}
